package net.koodar.forge.system.support.loginLog.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import net.koodar.forge.mybatis.doman.BaseEntity;

/**
 * 登录日志
 *
 * @author liyc
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sys_login_log")
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class LoginLog extends BaseEntity<LoginLog> {

	@TableId(value = "login_log_id", type = IdType.AUTO)
	private Long loginLogId;

	/**
	 * 用户id
	 */
	@TableField("user_id")
	private Long userId;

	/**
	 * 用户名
	 */
	@TableField("user_name")
	private String userName;

	/**
	 * 登录ip
	 */
	@TableField("login_ip")
	private String loginIp;

	/**
	 * user-agent
	 */
	@TableField("user_agent")
	private String userAgent;

	/**
	 * 备注
	 */
	@TableField("remark")
	private String remark;

	/**
	 * 登录类型
	 */
	@TableField("login_result")
	private Integer loginResult;

}
